package com.bristua.barcode.supplier.biz;

import com.bristua.barcode.supplier.dao.TChannelMapper;
import com.bristua.barcode.supplier.model.TChannel;
import com.bristua.barcode.supplier.model.condition.HandelChannelParams;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/9/5.
 */
@Service
@Transactional
public class DisableEnablationChannelBiz {
    @Resource
    private TChannelMapper tChannelMapper;

    public void disableEnablationChannel(HandelChannelParams handelChannelParams){
        TChannel tChannel = new TChannel();
        tChannel.setChannelId(handelChannelParams.getChannelId());
        tChannel.setStatus(handelChannelParams.getStatus());
        tChannelMapper.updateByPrimaryKeySelective(tChannel);
    }
}
